package com.zrrd.spring_02.service.impl;

import com.zrrd.spring_02.mapper.TeaDao;
import com.zrrd.spring_02.service.TeaService;

/**
 * @author WanJl
 * @version 1.0
 * @title TeaDaoImpl02
 * @description
 * @create 2024/10/24
 */
public class TeaServiceImpl03 implements TeaService {

    private TeaDao teaDao;

    private int age;



    public TeaServiceImpl03(int age) {
        this.age = age;
    }

    public TeaServiceImpl03(TeaDao teaDao) {
        this.teaDao = teaDao;
    }

    public TeaServiceImpl03(TeaDao teaDao, int age) {
        this.teaDao = teaDao;
        this.age = age;
    }

    @Override
    public void method() {
        System.out.println(age);
        teaDao.teaDaoMethod();
    }
}
